package com.redis.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author CKC
 * @DateTime 2021/11/14 15:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Student implements Serializable {
    private String name;
    private Integer age;
    private String email;

    public Student setName(String name) {
        this.name = name;
        return this;
    }

    public Student setAge(Integer age) {
        this.age = age;
        return this;
    }

    public Student setEmail(String email) {
        this.email = email;
        return this;
    }
}
